
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
    String path = request.getContextPath();
%>

<div id="title">
    <h1>我收藏的文章</h1>
    <label>${fn:length(articles)}篇文章</label>
</div>
<table width="684px" border="0" cellspacing="15" cellpadding="0">
    <thead>
    <tr>
        <th>收藏的文章</th>
        <th>作者</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody id="collectData">
    <c:forEach items="${requestScope.articles}" var="a">
        <tr id="tr${a.id}">
            <td><a href="<%=path%>/web/article/details?id=${a.id}">${a.title}</a></td>
            <td>${a.userinfo.nickname}</td>
            <td><a href="javascript:void(0);" onclick="deleteCollect(${a.id},'${a.title}','${a.userinfo.nickname}')">取消收藏</a> </td>
        </tr>
    </c:forEach>
    </tbody>

</table>





